home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 62
/
Volume 62 - JOGO DISK .iso
/
interface
/
md.000
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-09-26
|
2KB
|
78 lines
function executa(caminho, comando)
{
switch(comando)
{
case 1:
getURL("FSCommand:RUN.APP",_level0.startdir + caminho);
break;
case 2:
getURL("FSCommand:ShellOpen",_level0.startdir + caminho);
break;
default:
getURL("FSCommand:RUN.APP",_level0.startdir + caminho);
}
}
function browser(arquivo, tipo, nome)
{
discador._visible = false;
fscommand("Browser.Close");
fscommand("Media.Stop");
getUrl("FSCommand:Browser.SetPos", "1,77");
getUrl("FSCommand:Browser.SetSize", "790,453");
switch(tipo)
{
case 1:
getURL("FSCommand:Browser.SetURL",_level0.startdir + "\\" + arquivo);
fscommand("Browser.Open");
_level6.naveg(nome);
break;
case 2:
getURL("FSCommand:Browser.SetURL",arquivo);
fscommand("Browser.Open");
_level6.naveg(nome);
break;
case 3:
getURL("FSCommand:ShellOpen",arquivo);
}
}
function acrobat(arquivo)
{
getURL("FSCommand:RUNORG",_level0.startdir + "\\interface\\acrobat\\AcroRd32.exe " + _level0.startdir + "\\" + caminho);
}
function naveg(nome)
{
this.barra_superior.bt_inicio.enabled = true;
this.barra_superior.bt_inicio.useHandCursor = true;
this.barra_superior.seguimento.nome = nome;
this.barra_superior.seguimento._visible = true;
}
function naveg_volta()
{
this.barra_superior.bt_inicio.useHandCursor = false;
this.barra_superior.bt_inicio.enabled = false;
this.barra_superior.seguimento.nome = "";
this.barra_superior.seguimento._visible = false;
}
function video(caminho)
{
_level6.barra_superior.som.gotoAndStop(2);
_level6.discador._visible = false;
_level6.msg_disca._visible = false;
fscommand("Browser.Close");
getUrl("FSCommand:Media.Type", "VIDEO");
getURL("FSCommand:Media.SelectFile",_level0.ssStartDir + "\\" + caminho);
getUrl("FSCommand:Media.SetPosition", "196,157");
getUrl("FSCommand:Media.SetZoom", "100");
fscommand("Media.Play");
getUrl("FSCommand:Media.GetLength", "_level0.totaltime");
}
function chama_discador()
{
fscommand("Browser.Close");
fscommand("Media.Stop");
this.msg_disca._visible = true;
}
stop();
getUrl("FSCommand:ORG", "_level0.startdir");
naveg_volta();